import axios from '../../axios.js';
const TENANTS = '/tenants';
const tenants = {
    getTenants: function (params) {
        return axios({
            url: TENANTS + "/getTenants",
            method: "get",
            params
        });
    },
    deleteTenants(data) {
        return axios({
            url: TENANTS + "/deleteTenants",
            method: "post",
            data
        });
    },
    modifyTenants(data) {
        return axios({
            url: TENANTS + "/modifyTenants",
            method: "post",
            data
        });
    },

    //从租赁订单中查看租客信息 冰
    checktenants(data) {
        return axios({
            url: TENANTS + '/checktenants',
            method: 'post',
            data
        })
    },

    //更改租客信用值   廖冬 modifyCredits
    modifyCredits(data) {
        console.log('发往后端', data);
        return axios({
            url: TENANTS + '/modifyCredits',
            method: 'post',
            data
        })
    },



    /*******************练超**************************/
    //租客注册，超
    tenantsRegister(data) {
        return axios({
            url: TENANTS + "/registers",
            method: "post",
            data
        });
    },

    //租客注册，验证账号是否存在，练超
    istenantsRegister(data) {
        return axios({
            url: TENANTS + "/isRegisters",
            method: "post",
            data
        });
    },
    /*******************练超**************************/

}
export default tenants;